﻿@model shop.GioiThieu

@{
    ViewBag.Title = "Thêm bải viết";
}
<script type="text/javascript" src="@Url.Content("~/plugin/ckEditor/ckeditor.js")"></script>
<link href="@Url.Content("~/Plugin/Uploadify/uploadify.css")" rel="stylesheet" />
<script src="@Url.Content("~/Plugin/Uploadify/jquery.uploadify.js")"></script>


@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

        <div class="editor-label">
            Tiêu đề
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TieuDe)
            @Html.ValidationMessageFor(model => model.TieuDe)
        </div>

        <div class="editor-label">
           Nội dung
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.NoiDung, new { @id="noidung"})
            @Html.ValidationMessageFor(model => model.NoiDung)
            <script type="text/javascript">
                CKEDITOR.replace("noidung");
            </script>
                </div>
        <p>
              <input type="submit" value="Thêm bài viết" />
                </p>

}

